<!DOCTYPE html>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
        <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
        <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css" />
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
        <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
        <script type="text/javascript" src="js/utente/UserApp.js"></script>
        <script src="http://code.jquery.com/jquery-1.8.2.js"></script>
        <script src="http://code.jquery.com/ui/1.9.1/jquery-ui.js"></script>

    </head>
    <body>
       
        <div id="content">
            <?php 
            session_start();
            if($_SESSION["MTOCodice"]=="") {?>
            
            <form method="post" action="listeners/UtenteListener.php">
                <input type="hidden" name="operation" value="login" />
                <input type="hidden" name="redirect" value="../testLogin.php" />
                Email: <input type="text" class="email" name="email" /><br />
                Password : <input type="password" class="password" name="password"/><br />
                <input type="submit" value="login" />
            </form>
            <?php } else { echo '<p>Benvenuto  ' . $_SESSION["MTOCodice"] . '</p>
                <p>
                <form method="post" action="listeners/UtenteListener.php">
                <input type="hidden" name="operation" value="logout" />
                <input type="hidden" name="redirect" value="../testLogin.php" />
                <input type="submit" name="logout" value="Logout" />
                </form>
                </p>'; } ?>
        </div>
    </body>
</html>
